package com.chainyoung.component_tmperson.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 借贷产品
 */
public class WalletDebit implements Serializable {


    /**
     * id : 3
     * coin : bit
     * period : 12
     * period_unit : month
     * rate : 0.040000
     * addtime : 1537932502
     * updatetime : 1537932502
     * is_enabled : 1
     * is_mine : 1
     * loan_time : 1537970615
     */

    private String id;
    private String coin;
    private int period;//	期限
    private String period_unit;//	期限单位
    private BigDecimal rate;//利息%
    private long addtime;
    private long updatetime;
    private int is_enabled;
    private int is_mine;//	是否借贷过
    private long loan_time;
    private String min_amount;//最小起贷
    private String img;
    private String next_repay_date;//下个还款日
    private String next_repay_amount;//下个还款金额
    private String rule;



    public String getCoin() {
        return coin;
    }

    public void setCoin(String coin) {
        this.coin = coin;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public String getPeriod_unit() {
        return period_unit;
    }

    public void setPeriod_unit(String period_unit) {
        this.period_unit = period_unit;
    }


    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    public int getIs_enabled() {
        return is_enabled;
    }

    public void setIs_enabled(int is_enabled) {
        this.is_enabled = is_enabled;
    }

    public int getIs_mine() {
        return is_mine;
    }

    public void setIs_mine(int is_mine) {
        this.is_mine = is_mine;
    }

    public long getLoan_time() {
        return loan_time;
    }

    public void setLoan_time(long loan_time) {
        this.loan_time = loan_time;
    }

    public String getMin_amount() {
        return min_amount;
    }

    public void setMin_amount(String min_amount) {
        this.min_amount = min_amount;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }


    public String getPeriodUnitStr() {
        switch (period_unit) {
            case "day":
                return "天";
            case "month":
                return "月";
        }
        return "";
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getNext_repay_date() {
        return next_repay_date;
    }

    public void setNext_repay_date(String next_repay_date) {
        this.next_repay_date = next_repay_date;
    }

    public String getNext_repay_amount() {
        return next_repay_amount;
    }

    public void setNext_repay_amount(String next_repay_amount) {
        this.next_repay_amount = next_repay_amount;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }
}
